<template>
    <div>
        <v-dialog
            :title="isEdit?'收费项目设置编辑':'收费项目设置新增'"
            :show.sync="dialogVisible"
            width="1200px">
            <div class="card-box">
                <el-form ref="editForm" :model="form" class="form-wrap" size="small" :rules="rules">


                    <el-form-item label="收费项目类型" prop="chargeProjectType">
                        <el-select v-model="form.chargeProjectType" placeholder="请选择">
                            <el-option
                                v-for="item in charge_project_type"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="收费项目名称" prop="chargeProjectName">
                        <el-input v-model="form.chargeProjectName"
                                  maxLength='50'
                                  placeholder="请输入"></el-input>
                    </el-form-item>
                    <el-form-item label="对应财务系统费用编码" prop="financeCode">
                        <el-input v-model="form.financeCode"
                                  maxLength='50'
                                  placeholder="请输入"></el-input>
                    </el-form-item>
                    <el-form-item label="应收日期设置" prop="receivablesDate">
                        <el-date-picker
                            v-model="form.receivablesDate"
                            type="date"
                            value-format="yyyy-MM-dd"
                            format="yyyy-MM-dd"
                            placeholder="签订日期"
                        ></el-date-picker>
                    </el-form-item>
                    <el-form-item label="取整方式" prop="roundingType">
                        <el-select v-model="form.roundingType" placeholder="请选择">
                            <el-option
                                v-for="item in rounding_type"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="金额保留位" prop="keepType">
                        <el-select v-model="form.keepType" placeholder="请选择">
                            <el-option
                                v-for="item in keep_type"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                </el-form>
            </div>
            <span slot="foot">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button @click="commit">提 交</el-button>
          </span>
        </v-dialog>
    </div>
</template>

<script src="./edit.js">
</script>

<style scoped lang="scss">
    @import "./edit";
</style>
